package org.hxyjs.service;

import org.hxyjs.dto.DTO;

import org.hxyjs.entity.MemberType;
import org.hxyjs.page.PageInfo;
import org.hxyjs.vo.MemberTypeView;

public interface MemberTypeService {
    /**
     * 查询全部
     * @return
     */
    public DTO<MemberType> getAllMemberTypes() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<MemberType> getMemberTypeByUno(String mtno) throws Exception;
    /**
     *删除
     * @param mtno
     * @return
     */
    public DTO<MemberType> deleteMemberType(String mtno) throws Exception;
    /**
     *  修改
     * @param memberType
     * @return
     */
    public DTO<MemberType> updateMemberType(MemberTypeView memberTypeView)  throws Exception;
    /**
     *  增加
     * @param memberType
     * @return
     */
    public DTO<MemberType> addMemberTypeByUno(MemberType memberType)  throws Exception;

    public DTO<MemberType> getMemberTypesByPage(PageInfo pageInfo) throws Exception;

    public DTO<MemberType> getMemberTypesWithOrders(String  mtno)  throws Exception;

    public DTO<MemberType> activate(String  mtno)  throws Exception;

    public DTO<MemberType> lettory(String  mtno,String giftName)  throws Exception;




}
